import pytest
from autoTest_brtcApi.utils.mysqlUtil import mydb


@pytest.fixture(scope='session',autouse=True)
def fixture():
    #环境预置
    print("开始执行接口自动化测试用例")
    yield
    print("用例执行完成，恢复环境")
    #执行
    sql='delete from UserName WHERE u_phone="12345678901";'
    mydb.execute_sql(sql)